<html>
<head><meta charset="utf-8"><title>massif doesn&#x27;t produce output when run on rustc · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/massif.20doesn&#x27;t.20produce.20output.20when.20run.20on.20rustc.html">massif doesn&#x27;t produce output when run on rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214397003"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/massif%20doesn%27t%20produce%20output%20when%20run%20on%20rustc/near/214397003" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/massif.20doesn&#x27;t.20produce.20output.20when.20run.20on.20rustc.html#214397003">(Oct 23 2020 at 23:30)</a>:</h4>
<p>On my system, running <code>valgrind --tool=massif rustc</code> doesn't produce a <code>massif.out.&lt;pid&gt;</code> file.<br>
I've tested with <code>valgrind --tool=massif ls</code>, which produces an output file as expected.</p>
<p>Has anyone else run into this? I'm using <code>valgrind-3.16.1</code> on Arch Linux</p>



<a name="214397022"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/massif%20doesn%27t%20produce%20output%20when%20run%20on%20rustc/near/214397022" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/massif.20doesn&#x27;t.20produce.20output.20when.20run.20on.20rustc.html#214397022">(Oct 23 2020 at 23:30)</a>:</h4>
<p>maybe you need to do something special to get it working with jemalloc?</p>



<a name="214397173"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/massif%20doesn%27t%20produce%20output%20when%20run%20on%20rustc/near/214397173" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tyson Nottingham <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/massif.20doesn&#x27;t.20produce.20output.20when.20run.20on.20rustc.html#214397173">(Oct 23 2020 at 23:33)</a>:</h4>
<p>Yes, I've run into this. Instead of running it on <code>rustc</code>, try running it on <code>$(rustup +&lt;toolchain-if-applicable&gt; which rustc)</code>.</p>



<a name="214397233"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/massif%20doesn%27t%20produce%20output%20when%20run%20on%20rustc/near/214397233" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tyson Nottingham <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/massif.20doesn&#x27;t.20produce.20output.20when.20run.20on.20rustc.html#214397233">(Oct 23 2020 at 23:34)</a>:</h4>
<p>I assume the <code>rustc</code> binary forwards to the latter somehow.</p>



<a name="214400527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/massif%20doesn%27t%20produce%20output%20when%20run%20on%20rustc/near/214400527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/massif.20doesn&#x27;t.20produce.20output.20when.20run.20on.20rustc.html#214400527">(Oct 24 2020 at 00:43)</a>:</h4>
<p><span class="user-mention" data-user-id="306073">@Tyson Nottingham</span> That fixed it. Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>